package cn.hr.entity;


import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;


/**
 * 公告实体类
 */
@Entity
@Table(name="tb_notice"
    ,catalog="hrm"
)

public class Notice  implements java.io.Serializable {


    // Fields    

     /**
	 * 
	 */
	private static final long serialVersionUID = 8784739494116868988L;
	private Integer id;
     private String noticeType;
     private String content;
     private Timestamp pulishTime;


    // Constructors

    /** default constructor */
    public Notice() {
    }

    
    /** full constructor */
    public Notice(String noticeType, String content, Timestamp pulishTime) {
        this.noticeType = noticeType;
        this.content = content;
        this.pulishTime = pulishTime;
    }

   
    // Property accessors
    @Id @GeneratedValue(strategy=IDENTITY)
    
    @Column(name="id", unique=true, nullable=false)

    public Integer getId() {
        return this.id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }
    
    @Column(name="noticeType", nullable=false, length=32)

    public String getNoticeType() {
        return this.noticeType;
    }
    
    public void setNoticeType(String noticeType) {
        this.noticeType = noticeType;
    }
    
    @Column(name="content", nullable=false)

    public String getContent() {
        return this.content;
    }
    
    public void setContent(String content) {
        this.content = content;
    }
    
    @Column(name="pulishTime", nullable=false, length=0)

    public Timestamp getPulishTime() {
        return this.pulishTime;
    }
    
    public void setPulishTime(Timestamp pulishTime) {
        this.pulishTime = pulishTime;
    }
   








}